home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Debug / DebugMessage.h < prev    next >
Text File  |  1997-06-28  |  826b  |  42 lines

  1. // DebugMessage.h
  2.  
  3. #ifndef DebugMessage_h
  4. #define DebugMessage_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class ConstData;
  11.  
  12. class DebugMessage
  13.   {
  14.     private:
  15.         static Str255 message;
  16.     
  17.     public:
  18.         DebugMessage();
  19.         DebugMessage( ConstStr255Param );
  20.         
  21.         void operator+=( ConstStr255Param );
  22.         void operator+=( ConstData );
  23.         void operator+=( uint64 );
  24.         void operator+=( int64 );
  25.         void operator+=( uint32 );
  26.         void operator+=( int32 );
  27.         void operator+=( void * );
  28.  
  29.         void operator+=( uint16 n )    { *this += uint32( n ); }
  30.         void operator+=( int16 n )        { *this += int32( n ); }
  31.         void operator+=( uint8 n )        { *this += uint32( n ); }
  32.         void operator+=( int8 n )        { *this += int32( n ); }
  33.         
  34.         void AddGo();
  35.         
  36.         void Show()                            { DebugStr( message ); }
  37.  
  38.         void ShowHigh()                    { SysBreakStr( message ); }
  39.   };
  40.  
  41. #endif
  42.